package com.itheima.service;

import java.util.List;

import com.itheima.dto.UserDTO;
import com.itheima.entity.ExcelModel;
import com.itheima.entity.UserInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Description: 登录
 * @Date :2019-08-15 17:31
 * @Author : yuan_he_song
 */
public interface UserService {
    /**
     * 用户登录
     */
    UserDTO login(String phone, String password);

    /**
     * 用户注册
     */
    int register(UserInfo userInfo);

    /**
     * 批量导入
     */
    int batchInsert(List<ExcelModel> datas);

    /**
     * 获取验证码
     */
    void generateCode(String phone);

    void export(HttpServletRequest request, HttpServletResponse response)throws Exception;
}
